<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>rotate方法</title>
    <style>
        div{
            width: 100px;
            height: 75px;
            background-color: pink;
            border: 1px solid black;
        }
        div.box1{
            transform: rotate(30deg);
            -ms-transform: rotate(30deg);
            -webkit-transform: rotate(30deg);
        }
    </style>
</head>
<body>
    <div></div>
    <div class="box1"></div>
</body>
</html>